<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>护理列表前台</title>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/js/common/bootstrap/css/bootstrap.min.css">

<!-- 可选的Bootstrap主题文件（一般不用引入） -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/js/common/bootstrap/css/bootstrap-theme.min.css">

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="${pageContext.request.contextPath }/js/jquery-3.1.1.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script
	src="${pageContext.request.contextPath }/js/common/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
	<hr>

	<form action="http://127.0.0.1:8081/bsc/jhy/Bis_nurse_projectReception"
		method="post" class="form-inline" id="myform">
		<table border="0" cellspacing="0" cellpadding="10" width="100%">
			<tr>
				<td width="5%" align="right">项目编号：</td>
				<td width="10%">
				<div class="input-group input-group-sm"><input type="text" id="project_id"
					name="project_id" value="" class="form-control"  aria-describedby="sizing-addon3"/></div></td>
				<td width="5%" align="right">项目名称：</td>
				<td>
				<div class="input-group input-group-sm"><input type="text" id="project_name" name="project_name"
					value="" class="form-control" aria-describedby="sizing-addon3"/></div></td>
				<td width="5%" align="right">分类：</td>
				<td><select name="type_id" id="type_id" class="form-control">
						<option value="">全部</option>
						<c:forEach items="${tlist }" var="type">
							<option value="${type.type_id }">${type.type_name }</option>
						</c:forEach>

				</select></td>
				<td width="5%" align="right">价格区间：</td>
				<td><div class="input-group input-group-sm"><input type="text" id="rmb_price1" name="rmb_price1" value=""
					class="form-control" /></div> 至 <div class="input-group input-group-sm"><input type="text" id="rmb_price2" name="rmb_price2"
					value="" class="form-control" /></div></td>
				<td  width=""  rowspan="2">&nbsp; &nbsp; &nbsp;
					<button class="btn btn-default btn-sm" type="submit">
						<span class="glyphicon glyphicon-search" aria-hidden="true"></span>查询
					</button>
					<button type="reset" class="btn btn-default btn-sm">
						<span class="glyphicon glyphicon-repeat" aria-hidden="true">重置
						
					</button>

				</td>
			</tr>

		</table>
	</form>

	<hr>
	<table data-toggle="table" class="table table-hover table-condensed">
		<tr>
			<td>护理项目图片</td>
			<td>项目编号</td>
			<td>项目名称</td>
			<td>人民币售价(元)</td>
			<td>颜值售价(个)</td>
			<td>标准手工费(元)</td>
			<td>活动手工费(元)</td>
			<td>服务时长(分钟)</td>
			<td>分类</td>
			<td>建立时间</td>
			<td></td>
		</tr>
		<c:forEach items="${list }" var="bis_nurse_project">
			<tr>
				<td>
				<div style="width:100px; height:100px; border-radius:50%; overflow:hidden;">
				<img width="100px" height="100px" src="http://localhost:8081/bsc/js/${bis_nurse_project.cover_photo}"/>
				</div>
				</td>
				<td>${bis_nurse_project.project_id }</td>
				<td>${bis_nurse_project.project_name }</td>
				<td>${bis_nurse_project.rmb_price }</td>
				<td>${bis_nurse_project.beauty_price }</td>
				<td>${bis_nurse_project.manual_price }</td>
				<td>${bis_nurse_project.active_price }</td>
				<td>${bis_nurse_project.server_time }</td>
				<td>${bis_nurse_project.type_name }</td>
				<td>${bis_nurse_project.create_time }</td>
				<td>
						
						<a class="btn btn-default" href="selectByIdproject/${bis_nurse_project.project_id }"
						 role="button" data-toggle="modal" data-target="#myModal" id="selectByIdproject">详情</a>
				</td>

			</tr>
		</c:forEach>

	</table>


<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document" style="100px">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">查看项目信息</h4>
      </div>
      <div class="modal-body">
      <iframe src="http://127.0.0.1:8081/bsc/jhy/selectByIdproject">
      </iframe>
      </div>
      <div class="modal-footer">
      </div>
    </div>
  </div>
</div>


</body>
</html>
<script type="text/javascript">

</script>